#ifndef SIGN_UP_H
#define SIGN_UP_H

#include <stdio.h>
#include <sys/stat.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include "../LVGL_show/lvgl/lvgl.h"
#include "../LVGL_show/ui_squareline/ui_events.h"
#include "../LVGL_show/ui_squareline/ui_helpers.h"
#include "../LVGL_show/ui_squareline/ui.h"
//
extern FILE *fp_stu;

//学生信息
typedef struct node
{
    char name[20];
    char account[15];
    char password[11];
}STU, *STUlist;

//账号密码链表保存
typedef struct student_node
{
    STU student;
    struct student_node *prev;
    struct student_node *next;
}stu_datanode, *stu_datalist;

//链表
stu_datalist headnode;

//功能函数
//保存账号密码
void student_account_save(FILE *fp_stu);
//链表
stu_datalist init_Stu_datalist();
stu_datalist node_Stu_datalist(STU students);
void insert_head(stu_datalist head, stu_datalist new);
//保存步骤
void process_register(STUlist students, stu_datalist headnode);
/*读取文件保存至链表*/
void read_stu_to_list(stu_datalist head);
//打印链表
void print_stu_list(stu_datalist headnode);
//查找链表
void find_account_for_stulist(stu_datalist head, STU findStu);



#endif

